#include "Log.hpp"
#include "Socket.hpp"


int main()
{
    int listenfd = Sock::Socket();
    Sock::Bind(listenfd, 8080);
    Sock::Listen(listenfd);
    while(true)
    {
        std::string cli_ip;
        uint16_t cli_port;
        int serverfd = Sock::Accept(listenfd, &cli_ip, &cli_port);
        std::cout << cli_ip << ":" << cli_port << "----" << serverfd << std::endl;

        // close(serverfd);
    }
    return 0;
}
